<?php
$concept = new supplier_information_concept();
$supplierList = $concept->fetchAll();
?>
<div id="mainDiv">
	<div id="tree">
		<div id="treeData">			
			<h1><?php echo $this->language->load('Supplier');?></h1>
			<hr/>
			<div class="item">
				<ul>
					<li>
						<a href="<?php echo $this->url('supplier/index');?>"><?php echo $this->language->load('List');?></a>
						<em>(<?php echo count($supplierList);?>)</em>						
						<ul class="sub">
							<?php foreach($supplierList AS $row) { ?>
							<li><a href="<?php echo $this->url('supplier/detail', array('id' => $row->getId()));?>"><?php echo $row->getTitle();?></a></li>
							<?php } ?>
						</ul>
					</li>
					<li><a href="<?php echo $this->url('supplier/contact/index');?>"><?php echo $this->language->load('Contact');?></a></li>
					<li><a href="<?php echo $this->url('supplier/order/index');?>"><?php echo $this->language->load('Order');?></a></li>
					<li><a href="<?php echo $this->url('supplier/product/index');?>"><?php echo $this->language->load('Product');?></a></li>
					<li><a href="<?php echo $this->url('supplier/warehouse/index');?>"><?php echo $this->language->load('Warehouse');?></a></li>
				</ul>
			</div>
			<?php echo $this->render('include/submenu.phtml');?>
		</div>
	</div>
	<div id="switch"></div>
	<div id="frame"><iframe frameborder="0" scrolling="yes" src="<?php echo $this->url('supplier/index');?>" id="mainFrame" name="mainFrame"></iframe></div>
</div>
	

